<!DOCTYPE HTML>
<html xmlns:th="http://www.thymeleaf.org">
<head>
    <title>商品列表</title>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
    <script src="/static/js/js/jquery.min.js"></script>
    <link rel="stylesheet" href="/static/js/bootstrap/css/bootstrap.css">
    <link rel="stylesheet" href="/static/js/bootstrap/css/bootstrap-theme.css">
    <script src="/static/js/jquery-validation/jquery.validate.min.js"></script>
    <script src="/static/js/jquery-validation/localization/messages_zh.min.js"></script>
    <script src="/static/js/js/common.js"></script>
    <script src="/static/js/js/md5.min.js"></script>
    <script src="/static/js/layer/layer.js"></script>

</head>
<body>

<div class="panel panel-default">
  <div class="panel-heading">秒杀商品列表</div>
  <table class="table" id="goodslist">
  	<tr><td>商品序号</td><td>商品名称</td><td>商品图片</td><td>商品原价</td><td>秒杀价</td><td>库存数量</td><td>详情</td></tr>
  	<tr  th:each="goods,goodsStat : ${goodsList}">
                <td th:text="${goodsStat.index+1}"></td>
                <td th:text="${goods.goodsName}"></td>
                <td ><img th:src="@{${goods.goodsImg}}" width="100" height="100" /></td>  
                <td th:text="${goods.goodsPrice}"></td>  
                <td th:text="${goods.goodsEndPrice}"></td>
                <td th:text="${goods.goodsStock}"></td>
                <td><a th:href="'/seckill/goods/to_detail/'+${goods.goodsId}">详情</a></td>

<!--        <td><a th:href="'/goods_detail.html?goodsId='+${goods.goodsId}">详情</a></td>-->
    </tr>
  </table>
</div>
</body>
</html>
